package lang;

import org.springframework.util.StopWatch;

public class StringBuilder_ {
    public static void main(String[] args) {

        int iii =10000000;
        StopWatch sw = new StopWatch();

        StringBuilder sb = new StringBuilder();
        sw.start("无初始");
        for (int i=0;i<=iii;i++){
            sb.append("1111111111");
        }
        sw.stop();



        StringBuilder sb1 = new StringBuilder(17);
        sw.start("有初始化");
        for (int i=0;i<=iii;i++){
            sb1.append("1111111111");
        }
        sw.stop();

        System.out.println(sw.prettyPrint());
    }
}
